<form class="layui-form layui-card" action="{:request()->url()}" data-auto="true" method="post" autocomplete="off">
    <div class="layui-card-body">
        <div class="layui-form-item">
            <label class="layui-form-label">性别</label>
            <div class="layui-input-block">
                <select name="gender" required>
                    {notempty name='vo.id'}
                    <option value="1" {$vo['gender'] == 1?'selected':''}>公</option>
                    <option value="2" {$vo['gender'] == 2?'selected':''}>母</option>
                    {/notempty}
                    {empty name='vo.id'}
                    <option value="1" selected>公</option>
                    <option value="2" >母</option>
                    {/empty}
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">月份</label>
            <div class="layui-input-block">
                <input type="number" name="month" required value='{$vo.month|default=""}' placeholder="请输入已出生几个月" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">体重区间</label>
            <div class="layui-input-inline">
                <input type="number" name="min_weight" value='{$vo.min_weight|default=""}' required placeholder="请输入最小体重" class="layui-input">
            </div>
            <div class="layui-input-inline">
                <input type="number" name="max_weight" value='{$vo.max_weight|default=""}' required placeholder="请输入最大体重" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">每日如厕次数</label>
            <div class="layui-input-block">
                <input type="number" name="toilet_times" required value='{$vo.toilet_times|default=""}' placeholder="请输入每日如厕次数" class="layui-input">
            </div>
        </div>
    </div>
    <div class="hr-line-dashed"></div>
    {empty name='vo.breed_id'}<input type='hidden' value='{$get.breed_id}' name='breed_id'>{/empty}
    <div class="layui-form-item text-center">
        <button class="layui-btn" type='submit'>保存数据</button>
        <button class="layui-btn layui-btn-danger" type='button' data-confirm="确定要取消编辑吗？" data-close>取消编辑</button>
    </div>
</form>